FROM openjdk:8-jdk-slim
LABEL maintainer=chen

RUN mkdir -p /opt/taskDemo

COPY target/*.jar  /opt/taskDemo/app.jar

COPY target/classes/application.yml /opt/taskDemo

COPY target/classes/config/spring-task.xml /opt/taskDemo

WORKDIR /opt/taskDemo

ENTRYPOINT ["java","-jar","app.jar","application.yml","spring-task.xml"]

EXPOSE 8899